import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import App from './App.vue';
import router from './router';

import '@/assets/style/global.less';
// import '@/assets/style/form.less';

import request from './utils/request';
import Caption from './components/caption.vue';
import Upload from './components/upload.vue';

document.title = '桃花源管理平台';

Vue.use(ElementUI, {
  size: 'mini'
});

Vue.config.productionTip = false;

Vue.prototype.$request = request;
Vue.component('thy-caption', Caption);
Vue.component('thy-upload', Upload);

new Vue({
  router,
  render: h => h(App)
}).$mount('#app');
